<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">基础设置</block>
<block name="controller">二维码生成</block>
<block name="action">二维码生成</block>
<block name="desc"></block>
<block name="content">
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">二维码生成</h3>
            <div class="box-tools">
			<button type="button" class="btn btn-default margin-r-5" rel-url="{:U('form')}" rel-action="dialog">
				<i class="fa fa-file-text"></i>
				新增
			</button>
		</div>
        </div>
        <div class="box-body table-responsive">
            <table class="table table-bordered table-striped table-hover">
                <tbody>
                <notempty name="data">
                    <tr>
                        <th class="text-center">编号</th>
                        <th class="text-center">名称</th>
                        <th class="text-center">店铺名称</th>
                        <th class="text-center">店铺编号</th>
                        <th class="text-center">业务员名称</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">操作</th>
                    </tr>
                    <volist name='data' id='items'>
                        <tr>
                            <td class="text-center">{$items.qrcode_id}</td>
                            <td class="">{$items.qrcode_name}</td>
                            <td class="">{$items.qrcode_storename}</td>
                            <td class="">{$items.qrcode_storecode}</td>
                            <td class="text-center">{$items.qrcode_username}</td>
                            <td class="text-center">{$items.status}</td>
                            <td class="text-center">
                                <a href="{$items.qrcode}" rel-action="dialog" rel-width="540" rel-height="540">查看</a>
                                <a href="{$items.edit}" rel-action="dialog">编辑</a>
                                <a href="{$items.delete}" rel-action="delete">删除</a>
                            </td>
                        </tr>
                    </volist>
                    <else />
                    <tr><td>暂无符合条件记录</td></tr>
                </notempty>
                </tbody>
            </table>
        </div>
        <notempty name="data">
            <div class="box-footer clearfix">
                {$page}
            </div>
        </notempty>
    </div>
</block>